package git.soulbgm.utils.okhttp;

import git.soulbgm.utils.LogUtil;
import okhttp3.Call;
import okhttp3.Callback;

import java.io.IOException;

/**
 * 基本回调
 *
 * @author SoulBGM
 * @date 2019/7/4 17:21
 */
public abstract class BaseCallback implements Callback {

    private final static LogUtil log = new LogUtil(BaseCallback.class);

    @Override
    public void onFailure(Call call, IOException e) {
        log.error("请求{}出现异常", call.request().url().toString(), e);
    }

}